<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>修改显示模式</title>
    <style>
        div {
            font-size: 20px;
            height: 200px;
            width: 200px;
            /*修改显示模式*/
            display: inline-block;
        }

        #d1 {
            background-color: skyblue;
        }

        #d2 {
            background-color: green;
        }

        #d3 {
            background-color: orange;
        }
        a {
            height: 200px;
            width: 200px;
            /*点200x200这个区域都会跳转*/
            /*none表示不显示，等于没有*/
            display: block;
        }
        #a1 {
            background-color: skyblue;
        }

        #a2 {
            background-color: green;
        }

        #a3 {
            background-color: orange;
        }
    </style>
</head>
<body>
<div id="d1">你好1</div>
<div id="d2">你好2</div>
<div id="d3">你好3</div>
<hr>
<a href="https://www.baidu.com" id="a1">去百度</a>
<a href="https://www.baidu.com" id="a2">去京东</a>
<a href="https://www.baidu.com" id="a3">去头条</a>
</body>
</html>